﻿namespace CSharpPro._1106;

class Program
{
    static void Main(string[] args)
    {
        // 实例化Demo类
        IUserService userService = new UserService();
        userService.RunMainMenu();
        
        /*Child child = new Child();
        Son son = new Son();
        Father father = new Father();
        Student student = new Student();
        IUserService userService = new UserServiceImpl();
        UserTest userTest = new UserTestSub();
        Demo demo = new Demo();*/
        //demo.TestPrint();
        Console.WriteLine(" ");
        
        
        /*Father childObj = new Child();
        childObj.Print();
        
        Father sonObj = new Son();
        sonObj.Print();
        
        // 给属性赋值
        student.Id = 1;
        student.Name = "张三";
        student.Age = 18;
        // 输出属性值
        Console.WriteLine($"学生ID：{student.Id}");
        Console.WriteLine($"学生姓名：{student.Name}");
        Console.WriteLine($"学生年龄：{student.Age}");
        
        // 调用接口方法
        userService.AddUser();
        userService.DeleteUser();
        userService.UpdateUser();
        userService.QueryUser();
        
        
        
        userTest.M1();
        userTest.M2();
        userTest.M3();
        
        demo.TestPrint1();*/
        /*// 调用判断闰年的方法
        demo.TestPrintLeapYear();
        // 调用作业2：旅游价格计算
        demo.TestPrintTravelPrice();*/
        /*demo.TestPrint1();
        demo.TestPrint2();
        demo.TestPrint3();
        demo.TestPrint4();
        demo.TestPrint5();
        demo.TestPrint6();
        
        
        User user = new User();
        user.TestPrint7();*/
        
        // 创建学生对象
        //Student stu1 = new Student("张三", "2025001", 90);
        //Student stu2 = new Student("李四", "2025002", 85);

        // 调用方法显示信息
       // stu1.DisplayInfo();
       // stu2.DisplayInfo();

        // 调用方法更新成绩
        //stu1.UpdateScore(95);
        //stu1.DisplayInfo();
        

        Console.ReadKey(); // 防止程序运行后直接退出
    }
}
